package com.yidu.drug.model;

import java.io.Serializable;
import java.util.Date;

import com.yidu.drug.common.Page;
import com.yidu.drug.common.Tools;

public class InventoryRecordModel implements Serializable {
    /**
     * 库存记录ID
     */
	private String irId;

	/**
	 * 业务ID(零售订单ID，批发订单ID，质检总报表ID，总店销售订单ID)
	 */
    private String pwId;

    /**
     * 名称(可不填)
     */
    private String matName;

    /**
     * 数量
     */
    private Integer matNum;

    /**
     * 记录时间
     */
    private Date irTime;

    /**
     * 记录类型(零售，批发，总店销售，质检入库)
     */
    private String irType;

    /**
     * 记录备注
     */
    private String irRemark;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 是否有效
     */
    private String isva;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 分店ID
     */
    private String filId;

    /**
     * 批次号
     */
    private String numbers;
    
    /**
     * 分页对象
     */
    private Page pages;
    
    /**
     * 当前页数
     */
    private String page;
    
    /**
     * 每页显示的行数
     */
    private String limit;
    
    /**
     * 公司名称(用于查询)
     */
    private String filName;
    
    /**
     * 记录时间(用于转换日期格式用)
     */
    private String irTimes;
    
    /**
     * 最小时间
     */
    private String irTimeMin;
    
    /**
     * 最大时间
     */
    private String irTimeMax;

    private static final long serialVersionUID = 1L;

    public String getIrId() {
        return irId;
    }

    public void setIrId(String irId) {
        this.irId = irId;
    }

    public String getPwId() {
        return pwId;
    }

    public void setPwId(String pwId) {
        this.pwId = pwId;
    }

    public String getMatName() {
        return matName;
    }

    public void setMatName(String matName) {
        this.matName = matName;
    }

    public Integer getMatNum() {
        return matNum;
    }

    public void setMatNum(Integer matNum) {
        this.matNum = matNum;
    }

    public Date getIrTime() {
        return irTime;
    }

    public void setIrTime(Date irTime) {
        this.irTime = irTime;
    }

    public String getIrType() {
        return irType;
    }

    public void setIrType(String irType) {
        this.irType = irType;
    }

    public String getIrRemark() {
        return irRemark;
    }

    public void setIrRemark(String irRemark) {
        this.irRemark = irRemark;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getIsva() {
        return isva;
    }

    public void setIsva(String isva) {
        this.isva = isva;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getFilId() {
        return filId;
    }

    public void setFilId(String filId) {
        this.filId = filId;
    }

    public String getNumbers() {
        return numbers;
    }

    public void setNumbers(String numbers) {
        this.numbers = numbers;
    }

	public Page getPages() {
		return pages;
	}

	public String getPage() {
		return page;
	}

	public String getLimit() {
		return limit;
	}

	public String getFilName() {
		return filName;
	}

	public void setPages(Page pages) {
		this.pages = pages;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public void setLimit(String limit) {
		this.limit = limit;
	}

	public void setFilName(String filName) {
		this.filName = filName;
	}

	public String getIrTimes() {
		return irTimes = Tools.getTimeStr(irTime);
	}

	public void setIrTimes(String irTimes) {
		this.irTimes = irTimes;
	}

	public String getIrTimeMin() {
		return irTimeMin;
	}

	public String getIrTimeMax() {
		return irTimeMax;
	}

	public void setIrTimeMin(String irTimeMin) {
		this.irTimeMin = irTimeMin;
	}

	public void setIrTimeMax(String irTimeMax) {
		this.irTimeMax = irTimeMax;
	}
    
}